<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()
function goHome() {
  router.push('/')
}
</script>

<template>
  <div class="error-bg">
    <div class="error-content">
      <div class="error-code">404</div>
      <div class="error-msg">页面未找到</div>
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </div>
  </div>
</template>

<style scoped>
.error-bg {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-content {
  text-align: center;
}
.error-code {
  font-size: 72px;
  font-weight: bold;
  margin-bottom: 12px;
}
.error-msg {
  font-size: 22px;
  margin-bottom: 24px;
}
</style> 